package com.ymttest.database.sqlwapper.CSIM;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundDimension;
import com.ymttest.database.model.ymt_autoreply;
import com.ymttest.utils.EnvSetup;

/************************************************************************************
 * @File name : ymt_autoreplyWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *csim
 ************************************************************************************/
public class ymt_autoreplyWapper {
	SqlManager manage;

	
	public ymt_autoreplyWapper() {
		manage = new SqlManager("ymtcsim" + EnvSetup.getEnv());
		 
	}
	public  List<ymt_autoreply> selectby(Map<String,Object> map) throws InterruptedException {
		List<ymt_autoreply> list = manage.getSelectResults("com.ymttest.database.mapping.ymt_autoreplyMapper.selectby",map);
		manage.commit();
		return list;
	}
	public int updateAutoReply(int cstype,int type,String message)
	{
		HashMap<String,Object> map=new HashMap();
		map.put("cstype", cstype);
		map.put("type", type);
		map.put("message", message);
		int count= manage.update("com.ymttest.database.mapping.ymt_autoreplyMapper.updateAutoReply",map);
		return count;
	}
	public int updateByPrimaryKey(ymt_autoreply record)
	{
		int count=manage.update("com.ymttest.database.mapping.ymt_autoreplyMapper.updateByPrimaryKey",record);
		manage.commit();
		return count;
	}
	public static void main(String args[]) {
	  
	}
	
	
}
